<template>
    <van-cell :title="data.options.label">
        <van-rate
            v-model="data.options.defaultValue"
            :size="data.options.size"
            :count="data.options.max"
            :color="data.options.color"
            void-icon="star"
            :disabled="data.options.disabled"
            :allow-half="data.options.allowHalf"
        />
    </van-cell>
</template>
<script>
import { Rate, Cell } from 'vant'
export default {
    name: 'FormRate',
    components: {
        [Rate.name]: Rate,
        [Cell.name]: Cell
    },
    props: {
        data: {
            type: Object
        }
    },
    methods: {

    }
}
</script>
